package android.Dominion.Graph;

public class GraphNodeFactory
{
	private int id = 0;

	public int getId()
	{
		return id;
	}

	public GraphNode MakeGraphNode(GraphNodeType type)
	{
		GraphNode node = null;
		if (type == GraphNodeType.Default)
		{
			node = new GraphNode();
		} else if (type == GraphNodeType.ChoiceNode)
		{
			node = new ChoiceNode();
		} else if (type == GraphNodeType.MessageNode)
		{
			node = new MessageNode();
		} else if (type == GraphNodeType.WaitNode)
		{
			node = new WaitNode();
		}

		node.setId(GetNextId());

		return null;
	}

	private int GetNextId()
	{
		int nextId = id;
		id++;
		return nextId;
	}

}
